/**
 * api集中管理
 * @type {string}
 */
import user from "@/api/user.js"; // 用户
import order from "@/api/order.js"; // 订单
import basic from "@/api/basic"; // 基础数据
import release from "@/api/release"; // 发布
import collection from "@/api/collection" //集合
import message from "@/api/message" //聊天
import feedback from "@/api/feedback" // 反馈信息
import ai from "@/api/ai" // 反馈信息
import transport from "@/api/transport.js"
import buyer from "@/api/buyer.js" // 采购商
// 订单

let getUrl = 'user/login';
let postUrl = 'user/login';

const install = (Vue, vm) => {
	vm.$u.api = {
		user: user(vm), // 将 vm 对象传递到 User 模块中
		order: order(vm),
		basic: basic(vm),
		release: release(vm),
		collection: collection(vm),
		message: message(vm),
		feedback: feedback(vm),
		ai: ai(vm),
		transport: transport(vm),
		buyer: buyer(vm)
	};
}
export default {
	install
}